<template>
  <view class="component" :style="'height:' + height">
    <image src="../static/empty.png" class="image" />
    <view class="text">{{text}}</view>
  </view>
</template>

<script>
export default {
  props: {
    height: {
      type: String,
      default: "100%",
    },
		text:{
			type: String,
			default: "暂无数据"
		}
  },
};
</script>

<style lang="scss" scoped>
.component {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  .image {
    width: 200rpx;
		height: 200rpx;
  }
  .text {
    font-size: 30rpx;
    color: #999;
    margin-top: 60rpx;
  }
}
</style>
